package com.smart.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.smart.common.domain.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author zhanghong
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel("项目临时任务响应模型")
public class ProjectTempTaskVO extends BaseVO implements Serializable {
    @ApiModelProperty("任务名称")
    private String name;
    @ApiModelProperty("任务编号")
    private String taskNum;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("提交开始时间")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("提交结束时间")
    private Date endTime;
    @ApiModelProperty("任务状态 UN_START未开始、RUNNING进行中、FINISH已结束、REVOKE已撤销、CANCEL已作废")
    private String status;
    @ApiModelProperty("数据项")
    private Long itemCount;
    @ApiModelProperty("数据项集合")
    private List<ProjectItemVO> items;
    @ApiModelProperty("已提报项目数")
    private Long reportCount;
    @ApiModelProperty("未提报项目数")
    private Long unReportCount;
}
